package com.ysjy.course.mapper;

import com.wkbb.common.base.BaseMapper;
import com.wkbb.common.dto.ResultDTO;
import com.ysjy.course.model.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderMapper extends BaseMapper<YsOrder> {

    YsOrder getOrderByNumber(@Param("orderNumber") String orderNumber);

    void applyRefund(YsOrder data);

    MoneyStatistical getOrderMoneyStatistical(Map<String, Object> params);

    void deleteInvalid();

    void delOrder(@Param("orderNumber") String orderNumber);

    List<OrgDto> getSchoolBusinessReportList(Map<String, Object> params);

    List<BusinessReport> getOrgCourseBusinessReportList(Map<String, Object> params);

    List<YsOrder> getOrderListByStudent(Map<String, Object> params);
}
